import java.io.IOException;
import java.io.PrintStream;
import java.net.Socket;
import java.net.UnknownHostException;


public class FlushNET {
//	http://guojigongyujwc.soufun.com/bbs/3110217902~-1~1675/58425947_58425947.htm
	
	
	public static void main(String[] args) throws UnknownHostException, IOException, InterruptedException {
		
		new Thread(new Runnable() {
			public void run() {
				PrintStream old = System.out;
				while(true) {
					try {
						Socket s = new Socket("http://guojigongyujwc.soufun.com", 80);
						old.println("连接成功");
						PrintStream out = new PrintStream(s.getOutputStream());
						System.setOut(out);
//					GET /bbs/soufun_forum/json/PostDetail/UpdateFlowerNum.aspx?sign=3110217902&bid=-1&aid=58425947&flag=0&nocache=1346601729015 HTTP/1.1..Accept: */*..Accept-Language: zh-cn..Referer: http://guojigongyujwc.soufun.com/bbs/3110217902~-1~1675/58425947_58425947.htm..Content-Type: text/plain..Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)..Host: guojigongyujwc.soufun.com..Connection: Keep-Alive..Cookie: ASP.NET_SessionId=p42o4i454ey4xvro2ruwq0un; __utma=77873355.409500114.1346601693.1346601693.1346601693.1; __utmb=77873355.15.10.1346601693; __utmc=77873355; __utmz=77873355.1346601693.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); global_cookie=6a17edbc-1346601693125-70726fd2; unique_cookie=U_6a17edbc-1346601693125-70726fd2*3; jiatxShopWindow=1....w
						System.out.println("GET /bbs/soufun_forum/json/PostDetail/UpdateFlowerNum.aspx?sign=3110217902&bid=-1&aid=58425947&flag=0&nocache=1346601729015 HTTP/1.1..Accept: */*..Accept-Language: zh-cn..Referer: http://guojigongyujwc.soufun.com/bbs/3110217902~-1~1675/58425947_58425947.htm..Content-Type: text/plain..Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)..Host: guojigongyujwc.soufun.com..Connection: Keep-Alive..Cookie: ASP.NET_SessionId=p42o4i454ey4xvro2ruwq0un; __utma=77873355.409500114.1346601693.1346601693.1346601693.1; __utmb=77873355.15.10.1346601693; __utmc=77873355; __utmz=77873355.1346601693.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); global_cookie=6a17edbc-1346601693125-70726fd2; unique_cookie=U_6a17edbc-1346601693125-70726fd2*3; jiatxShopWindow=1....w");
						s.close();
						Thread.sleep(1000);
					} catch (UnknownHostException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					} catch (IOException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					} catch (InterruptedException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
			}
		}).start();
		
	}
}
